package com.sanchunhui.psc.utils

import java.util.*

/**
 * @Author zyx
 * @Date 2021/6/2-11:21
 * @Dscribe
 */

class NoticeObservable private constructor() : Observable() {
    companion object {
        val instance = NoticeObservable()
    }

    fun newMsgComing(extras: String) {
        //从广播接受者获取到最新消息
        //通知所有观察者，新消息来了
        setChanged()
        notifyObservers(extras)
    }
}